<!DOCTYPE html xmlns:wb="http://open.weibo.com/wb">
<html lang="en">
<head>
<title>SunivoWeb | 分享</title>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="renderer" content="webkit">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="author" content="Huazz Tsai">
<meta name="keyword" content="">
<link rel="shortcut icon" href="../customize/ico/favicon.png">
<link rel="apple-touch-icon" href="../customize/ico/favicon.png">
<!--[if lt IE 9]>
<script type="text/javascript" src="../script/html5shiv.js"></script>
<![endif]-->
<link rel="stylesheet" href="../customize/css/sunivoweb.frame.css"/>
<link rel="stylesheet" href="../customize/css/reset.css"/>
<link rel="stylesheet" href="../customize/css/sunivoweb_style.css"/>
<link rel="stylesheet" href="../customize/css/k-plugin.css"/>
<script type="text/javascript" src="../customize/script/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../customize/script/sunivoweb.frame.js"></script>
<script type="text/javascript" src="../customize/script/sunivoweb.app.js"></script>
<script type="text/javascript" src="../customize/script/ports.js"></script>
<script type="text/javascript" src="../customize/script/portSelector.js"></script>
<script>(function($){$.initover = function(fn) {$(document).one('initover', fn);}})(jQuery);</script>
<script type="text/javascript" src="../customize/script/handlebars.js"></script>

<script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js" type="text/javascript" charset="utf-8"></script>
</head>
<body>
<div class="k-ichcek">
  <h1>分享 </h1>
  <!--插件编译人、编译时间-->
  <label>王玉兴　发布日期：2014-03-27</label>
  <div class="component-block">
    <h2>★ 案例</h2>
    对多数分享地址进行了封装
</div>
  <h3>社会化分享</h3>
<div class="bs-docs-example"> 
    <!--添加插件案例--> 
    <div class="form-horizontal">
      <table class="table table-hover">
        <tr>
        	<td><a href="javascript:void(0)" onclick="sunivoweb.share.qq()">QQ(qq)</a></td>
            <td><a href="javascript:void(0)" onclick="sunivoweb.share.sina()">新浪(sina)</a></td>
            <td><a href="javascript:void(0)" onclick="sunivoweb.share.renren()">人人(renren)</a></td>
          <td><a href="javascript:void(0)" onclick="sunivoweb.share.douban()">多看(douban)</a></td>
        </tr>
        <tr>
        	<td><a href="javascript:void(0)" onclick="sunivoweb.share.wangyi()">网易(wangyi)</a></td>
            <td><a href="javascript:void(0)" onclick="sunivoweb.share.twitter()">推特(twitter)</a></td>
            <td><a href="javascript:void(0)" onclick="sunivoweb.share.facebook()">脸书(facebook)</a></td>
          <td></td>
        </tr>
      </table>
      
  </div>
  </div>
  <!--添加插件代码-->
  <pre class="prettyprint linenums"><ol class="linenums"><li>&lt;a <span class="text-success">href=</span><span class="text-warning">&quot;javascript:void(0)&quot;</span> <span class="text-success">onclick=</span><span class="text-warning">&quot;sunivoweb.share.qq()&quot;</span>&gt;QQ(qq)&lt;/a&gt;</li><li>/*</li><li> 说明：</li><li>此分享内容为当前页面的title及url</li><li>在此以QQ分享为例，其他分享只要调用sunivoweb.share.xx()方法即可</li><li>*/</li></pre>
  <h3>在线咨询</h3>
<div class="bs-docs-example"> 
    <!--添加插件案例--> 
    <div class="form-horizontal">
   	  <a href="tencent://message/?uin=417913012&Site=test&Menu=yes">在线咨询</a> 
    </div>
  </div>
  <!--添加插件代码-->
  <pre class="prettyprint linenums"><ol class="linenums"><li>&lt;a <span class="text-success">href=</span><span class="text-warning">&quot;tencent://message/?uin=417913012&amp;Site=test&amp;Menu=yes&quot;</span>&gt;在线咨询&lt;/a&gt;</li><li>/*</li><li> 说明：</li><li> 此方法只是简单实现在线客服</li><li> 更多方法请访问 <a href="http://b.qq.com/wp/" target="_blank">http://b.qq.com/wp/</a></li><li>*/</li></pre>
  <h3>新浪微博关注</h3>
<div class="bs-docs-example"> 
    <!--添加插件案例--> 
    <div class="form-horizontal">
   	  <wb:follow-button uid="2055139817" type="red_1" width="67" height="24" ></wb:follow-button>
    </div>
  </div>
  <pre class="prettyprint linenums"><ol class="linenums"><li>&lt;html xmlns:wb=&quot;http://open.weibo.com/wb&quot;&gt;</li><li>//在HTML标签中增加XML命名空间</li><li>&lt;script src=&quot;http://tjs.sjs.sinajs.cn/open/api/js/wb.js&quot; type=&quot;text/javascript&quot; charset=&quot;utf-8&quot;&gt;&lt;/script&gt;</li><li>//在HEAD头中引入WB.JS</li><li>&lt;wb:follow-button uid=&quot;2991975565&quot; type=&quot;red_1&quot; width=&quot;67&quot; height=&quot;24&quot; &gt;&lt;/wb:follow-button&gt;</li><li>// 在需要部署微博关注按钮的位置粘贴WBML代码，<a href="http://weibojs.com/widget/follow-button.php#wb" target="_blank">查看更多参数</a></li></pre>
</div>
</body>

</html>